package com.qbccn.blog.service.impl;

import com.qbccn.blog.entity.BgRole;
import com.qbccn.blog.mapper.BgRoleMapper;
import com.qbccn.blog.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author linke
 * @date 2019-12-22 下午 21:02
 * @description
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private BgRoleMapper bgRoleMapper;

    @Override
    public List<BgRole> getRoleList(Integer userId) {
        return bgRoleMapper.getListByUserId(userId);
    }
}
